package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "institution_company")
@ApiModel(value = "InstitutionCompanyEntity", description = "公司机构对照表")
@DynamicInsert
@DynamicUpdate
public class InstitutionCompanyEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "公司id")
    @Column(name = "company_id")
    private String companyId;

    @ApiModelProperty(value = "机构id")
    @Column(name = "institution_id")
    private String institutionId;

    @ApiModelProperty(value = "融资id")
    @Column(name = "finacing_id")
    private String financingId;

    @ApiModelProperty(value = "单位：亿")
    private float money;

    @ApiModelProperty(value = "公司id")
    @Column(name = "money_string")
    private String moneyString;

    @ApiModelProperty(value = "主投 跟投")
    private String key;

    @ApiModelProperty(value = "融资时间")
    private Date time;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

}
